package com.sgb.kjwl.view.ui.adapter.transport;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sgb.kjwl.R;
import com.sgb.kjwl.utils.DefaultUtil;

import java.util.List;

/**
 * @author: 杨畔
 * @date: 4/15/21 10:58 AM
 * @Description: 货源标签
 */
public class GoodsTagAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    public GoodsTagAdapter(@Nullable List<String> data) {
        super(R.layout.item_goods_tag, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        helper.setText(R.id.tv_item_tag_name, DefaultUtil.getString(item));
    }
}
